<?php

use yii\helpers\Html;
use yii\widgets\DetailView;

/* @var $this yii\web\View */
/* @var $model app\models\Order */

$this->title = $model->id;
$this->params['breadcrumbs'][] = ['label' => 'Orders', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
?>
<div class="order-view">

    <h1><?= Html::encode($this->title) ?></h1>

    <p>
        <?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
        <?= Html::a('Delete', ['delete', 'id' => $model->id], [
            'class' => 'btn btn-danger',
            'data' => [
                'confirm' => 'Are you sure you want to delete this item?',
                'method' => 'post',
            ],
        ]) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'id',
            'ext_order_id',
            'increment_id',
            'magento_order_id',
            'payment_method',
            'storehouse_id',
            'payment_status',
            'order_type',
            'order_status',
            'last_track_status',
            'shipping_method',
            'shipping_method_origin',
            'shipping_description',
            'shipping_description_origin',
            'shipping_track_no',
            'waybill',
            'payment_at',
            'process_at',
            'has_shipment',
            'shipped_at',
            'shipped_count',
            'total_item_count',
            'edited',
            'approved',
            'blocked',
            'paused',
            'paused_uid',
            'changed',
            'reshipped',
            'expedited',
            'created_at',
            'updated_at',
            'uid',
            'website_id',
            'store_id',
            'from',
            'currency_code',
            'grand_total',
            'base_grand_total',
            'static_grand_total',
            'subtotal',
            'base_subtotal',
            'base_discount_amount',
            'base_shipping_amount',
            'shipping_amount',
            'discount_amount',
            'discount_points',
            'discount_points_amount',
            'base_discount_points_amount',
            'system_discount',
            'discount_description',
            'package_return',
            'shipping_insurance',
            'shipping_discount_amount',
            'base_shipping_discount_amount',
            'store_credit_amount',
            'static_store_credit_amount',
            'base_store_credit_amount',
            'gift_card_discount_amount',
            'base_gift_card_discount_amount',
            'ups_special',
            'has_gift',
            'has_prime_gift',
            'transaction_id',
            'presale',
            'presale_timeline',
            'magento_return_id',
            'tariff_insurance_amount',
            'base_tariff_insurance_amount',
            'coupon_code',
            'coupon_rule_name',
            'prime_discount_amount',
            'base_prime_discount_amount',
            'google_order_id',
            'shipping_tax_amount',
            'has_print_shipment_label',
            'has_bundle',
            'magento_user_lev_ordered',
            'customer_id',
            'customer_group',
            'haiwaicang_export',
            'haiwaicang_export_uid',
            'guuid',
            'is_fraud',
            'distributor',
            'distributor_order_id',
            'source',
            'blocked2',
            'weight',
            'sync_success',
            'email:email',
            'orders_type',
        ],
    ]) ?>

</div>
